package com.wanke.utils;

import org.springframework.stereotype.Component;

/**
 * @program: jpa_demo
 * @ClassName CheckInputString
 * @author: WXK
 * @create: 2025-01-22 22:23
 **/
@Component
public class CheckInputString {


    public static boolean checkEmail(String str){
        if(str.matches("^[a-zA-Z0-9_-]+@[a-zA-Z0-9_-]+(\\.[a-zA-Z0-9_-]+)+$")){
            return true;
        }
        return false;
    }

}
